package com.rj.framework.biz;

import com.rj.framework.biz.validation.TenantResource;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
 import lombok.experimental.Accessors;

import java.math.BigDecimal;

// ==================== 领域对象 ====================
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @NotEmpty
    private String id;
    @TenantResource(message = "客户资源不属于当前租户")
    private String customerId;
    private BigDecimal totalAmount;
    // getters/setters...
}
